<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title>提示</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <js href="__PUBLIC__/js/jquery.js"/>
    <script type="text/javascript">
        var arr = new Array();　//创建一个数组
        for(var i=0;i<10;i++){
            arr. push(i);
        }
        $(function(){
            //run();
            var interval;
            function run(){
                interval = setInterval(chat,"100");
            }
            function chat(){
                var html="";
                
                for(var i=0;i<arr.length;i++){
                    html +=i.toString()+"<br>";
                }
                $('#msg').html(html);
            }
            $('#closechat').click(function(){
               //clearTimeout(interval); 
               chat();
            });
        });
    </script>
</head>
<body>
    <a id="closechat">关闭</a>
    <div id="msg"></div>
</body>
</html>
